package com.alibaba.citrus.cr.mn.order.center.forecastorder.convert;

import com.epoch.app.mnordercenter.model.dto.PageQueryForecastDetailResponse;
import com.epoch.app.mnordercenter.model.dto.PageQueryGroupForecastDetailResponse;
import org.springframework.beans.BeanUtils;

public class QueryForecastLineResponseToResponseConvertor {

	public static void convert(PageQueryForecastDetailResponse source, PageQueryGroupForecastDetailResponse target) {
		BeanUtils.copyProperties(source, target);
		target.setDeliveryFactoryName("");
		target.setStockName("");
		target.setReceiveFactoryName("");
		target.setReceiveStockName("");

//		target.setSalesOrderNo(source.getSalesOrderNo());
//		target.setOrderChannelCode(source.getOrderChannelCode());
//		target.setOrderChannelName(source.getOrderChannelName());
//		target.setFromSys(source.getFromSys());
//		target.setBusinessType(source.getBusinessType());
//		target.setBusinessTypeName(source.getBusinessTypeName());
//		target.setBusinessUnitCode(source.getBusinessUnitCode());
//		target.setBusinessUnitName(source.getBusinessUnitName());
//		target.setSalesOrderType(source.getSalesOrderType());
//		target.setSalesOrderTypeName(source.getSalesOrderTypeName());
//		target.setShipToPartyCode(source.getShipToPartyCode());
//		target.setShipToPartyName(source.getShipToPartyName());
//		target.setCustomerCode(source.getCustomerCode());
//		target.setCustomerName(source.getCustomerName());
//		target.setBusinessChannel(source.getBusinessChannel());
//		target.setBusinessChannelName(source.getBusinessChannelName());
//		target.setSalesOrganizationCode(source.getSalesOrganizationCode());
//		target.setSalesOrganizationName(source.getSalesOrganizationName());
//		target.setSalesChannelCode(source.getSalesChannelCode());
//		target.setSalesChannelName(source.getSalesChannelName());
//		target.setProductGroupCode(source.getProductGroupCode());
//		target.setProductGroupName(source.getProductGroupName());
//		target.setOrderStatus(source.getOrderStatus());
//		target.setVaildBeginDate(source.getVaildBeginTime());
//		target.setExpectedDeliveryDate(source.getExpectedDeliveryDate());
//		target.setDeliveryMethodCode(source.getDeliveryMethodCode());
//		target.setDeliveryMethodName(source.getDeliveryMethodName());
//		target.setCreatorCode(source.getCreatorCode());
//		target.setCreatorName(source.getCreatorName());
//		target.setCreateTime(source.getCreateTime());
//		target.setModifierCode(source.getModifierCode());
//		target.setModifierName(source.getModifierName());
//		target.setModifierTime(source.getModifierTime());
//		target.setCustomerPurchaseOrderNo(source.getCustomerPurchaseOrderNo());
//		target.setCustomerPurchaseDate(source.getCustomerPurchaseDate());
//		target.setOrderReasonCode(source.getOrderReasonCode());
//		target.setOrderReasonName(source.getOrderReasonName());
//		target.setNote(source.getNote());
//		target.setReceiveWarehouseCode(source.getReceiveWarehouseCode());
//		target.setReceiveWarehouseName(source.getReceiveWarehouseName());
//		target.setReceiveFactoryCode(source.getReceiveFactoryCode());
//		target.setReceiveFactoryName(source.getReceiveWarehouseName());
//		target.setReceiveStockCode(source.getReceiveStockCode());
//		target.setReceiveStockName(source.getReceiveStockName());
//		target.setShippingWarehouseCode(source.getShippingWarehouseCode());
//		target.setShippingWarehouseName(source.getShippingWarehouseName());
//		target.setFulfillmentTypeCode(source.getFulfillmentTypeCode());
//		target.setFulfillmentPriority(source.getFulfillmentPriority());
//		target.setOrderBizTag(Arrays.asList(source.getOrderTag().split(",")));
//		target.setOutOrderNo(source.getOuterOrderCode());
//		target.setSourceOrderNo(source.getSourceOrderNo());
//		target.setCustomerGrade(source.getCustomerGrade());
//		target.setCustomerGroup(source.getCustomerGroup());
//		target.setBizFeatures(source.getBizFeatures());
//		target.setAutoFulfillment(source.getAutoFulfillment());
	}
}
